package com.zhoug.player.exoplayer.v2;

import androidx.media3.common.Player;

/**
 * @author: zhoug
 * @since: 2025-06-27
 */
public class ZExoUtils {

    public static String getPlaybackStateString(int state) {
        return switch (state) {
            case Player.STATE_IDLE -> "STATE_IDLE";
            case Player.STATE_BUFFERING -> "STATE_IDLE";
            case Player.STATE_READY -> "STATE_IDLE";
            case Player.STATE_ENDED -> "STATE_IDLE";
            default -> "null";
        };
    }
}
